//
//  ViewController.m
//  YUNWUMeetingDemo
//
//  Created by mac on 2019/7/11.
//  Copyright © 2019 DGL. All rights reserved.
//

#import "ViewController.h"
#import "SetMeetingAccountViewController.h"


@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    UIButton *beginBtn = [[UIButton alloc]init];
    [beginBtn setTitle:@"开启通话" forState:UIControlStateNormal];
    beginBtn.backgroundColor = [UIColor blackColor];
    [beginBtn addTarget:self action:@selector(beginAction) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:beginBtn];
    [beginBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.centerX.mas_equalTo(self.view);
        make.width.height.mas_equalTo(120);
    }];
    
    // Do any additional setup after loading the view.
}

#pragma mark -- Action
- (void)beginAction{
    SetMeetingAccountViewController *meetingAccount = [[SetMeetingAccountViewController alloc]init];
    [self.navigationController pushViewController:meetingAccount animated:YES];
}

@end
